package com.wulian.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * @author 马志豪
 * @ClassName: GatewayApplication
 * @Description: TODO(路由网关)
 * @date 2019年9月10日 下午2:22:42
 */
@EnableZuulProxy
@EnableFeignClients
@EnableEurekaClient
@SpringCloudApplication
@EnableRedisHttpSession(maxInactiveIntervalInSeconds = 24 * 60 * 60)
@ComponentScan("com.wulian")
@EnableAutoConfiguration(exclude = {
		DataSourceAutoConfiguration.class
})
public class GatewayApplication {
    public static void main(String[] args) {
        SpringApplication.run(GatewayApplication.class, args);
    }
}